package office.service.business;

import java.util.List;

import office.action.business.form.SupplierConditionForm;
import office.action.business.form.SupplierForm;
import office.action.business.wrapper.SupplierWrapper;
import platform.common.bo.Page;
import platform.common.exception.BusinessException;

public interface ISupplierService {
	/**
	 * 获取分页信息
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfo(SupplierConditionForm condition)throws BusinessException;
	/**
	 * 获取所有的供应商
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<SupplierWrapper> findAllSupplier(SupplierConditionForm condition,Page page)throws BusinessException;
	/**
	 * 编辑供应商
	 * @param saleChanceForm
	 * @throws BusinessException
	 */
	public void editSupplier(SupplierForm form)throws BusinessException;
	
	/**
	 * 删除供应商
	 * @param id
	 * @throws BusinessException
	 */
	public void delSupplierById(String id)throws BusinessException;
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public SupplierForm getById(String id)throws BusinessException;
}
